//
//  NotifyingClass.m
//  TextApp
//
//  Created by panos on 16/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"

@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	NSString *firstObject = @"Milk";
	NSString *secondObject = @"Eggs";
	NSString *thirdObject = @"Butter";
	
	NSArray *shoppingListArray = [NSArray arrayWithObjects:
								  firstObject, secondObject, thirdObject, nil];
	
	//WonderfulNumber *myWonderfulNumber = [WonderfulNumber wonderfulNumberWithFloat:pi];
	
	NSString *stringToOutput = [NSString stringWithFormat:@"shoppingListArray: %@\n",shoppingListArray];
	
	//stringToOutput = [stringToOutput stringByAppendingString:[myWonderfulNumber storedNumberAsString]];
	
	[textView insertText:stringToOutput];
	
}


- (float)generateValue:(float *)originalValue
{
	float value = [textField floatValue];
	*originalValue = value;
	return [MathUtilities circumferenceFromRadius:value];
}

@end
